home *** CD-ROM | disk | FTP | other *** search
/ Aminet 52 / Aminet 52 (2002)(GTI - Schatztruhe)[!][Dec 2002].iso / Aminet / util / moni / Scout-src.lha / source / objects / scout_tasks.h < prev    next >
Encoding:
C/C++ Source or Header  |  2002-09-17  |  2.6 KB  |  88 lines

  1. /**
  2.  * Scout - The Amiga System Monitor
  3.  *
  4.  *------------------------------------------------------------------
  5.  *
  6.  * This program is free software; you can redistribute it and/or modify
  7.  * it under the terms of the GNU General Public License as published by
  8.  * the Free Software Foundation; either version 2 of the License, or
  9.  * any later version.
  10.  *
  11.  * This program is distributed in the hope that it will be useful,
  12.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14.  * GNU General Public License for more details.
  15.  *
  16.  * You should have received a copy of the GNU General Public License
  17.  * along with this program; if not, write to the Free Software
  18.  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  19.  *
  20.  * You must not use this source code to gain profit of any kind!
  21.  *
  22.  *------------------------------------------------------------------
  23.  *
  24.  * @author Andreas Gelhausen
  25.  * @author Richard Körber <rkoerber@gmx.de>
  26.  */
  27.  
  28.  
  29. /* Prototypes for functions defined in
  30. objects/scout_tasks.c
  31.  */
  32.  
  33. struct TaskEntry {
  34.     struct MinNode te_Node;
  35.     struct Task *te_Addr;
  36.     UBYTE te_Address[ADDRESS_LENGTH];
  37.     UBYTE te_Name[NODENAME_LENGTH];
  38.     UBYTE te_Pri[NUMBER_LENGTH];
  39.     UBYTE te_Type[NODETYPE_LENGTH];
  40.     UBYTE te_Num[NUMBER_LENGTH];
  41.     UBYTE te_State[TASK_STATE_LENGTH];
  42.     UBYTE te_CPU[NUMBER_LENGTH];
  43.     UBYTE te_SigWait[NUMBER_LENGTH];
  44.     UBYTE te_FreeStack[NUMBER_LENGTH];
  45. };
  46.  
  47. struct Task *TaskExists( struct Task *tasktofind );
  48.  
  49. UBYTE *GetTaskState( UBYTE state, ULONG waitmask );
  50.  
  51. UBYTE *GetNodeType( UBYTE );
  52.  
  53. UBYTE *GetTaskName( struct Task *, UBYTE *, ULONG );
  54.  
  55. void PrintTasks( char * );
  56.  
  57. void SendTaskList( void );
  58.  
  59. #define TasksWindowObject                    NewObject(TasksWinClass->mcc_Class, NULL
  60.  
  61. struct TasksWinData {
  62.     UBYTE twd_Title[WINDOW_TITLE_LENGTH];
  63.     APTR twd_Application;
  64.     APTR twd_TaskList;
  65.     APTR twd_TaskText;
  66.     APTR twd_TaskCount;
  67.     APTR twd_RemoveButton;
  68.     APTR twd_PriorityButton;
  69.     APTR twd_MoreButton;
  70.     APTR twd_SignalButton;
  71.     APTR twd_BreakButton;
  72.     APTR twd_FreezeButton;
  73.     APTR twd_ActivateButton;
  74.     APTR twd_CPUGauge;
  75.     APTR twd_CPUCycle;
  76.     APTR twd_RefreshString;
  77.     ULONG twd_CPUCheck;
  78.     struct MUI_InputHandlerNode twd_TimerHandler;
  79.     BOOL twd_TimerHandlerAdded;
  80.     struct TaskEntry twd_NewEntry;
  81.     struct TaskEntry twd_CompareEntry;
  82. };
  83.  
  84. ULONG __asm __saveds TasksWinDispatcher( register __a0 struct IClass *cl,
  85.                                          register __a2 Object *obj,
  86.                                          register __a1 Msg msg );
  87.  
  88.